home *** CD-ROM | disk | FTP | other *** search
- Path: oxy.rust.net!usenet
- From: ebennett@rust.net
- Newsgroups: comp.lang.c
- Subject: Re: Borlands c/c++ compiler help!!
- Date: Thu, 11 Jan 1996 05:15:16 GMT
- Organization: Rust Net - High Speed Internet in Detroit 810-642-2276
- Message-ID: <4d1rpe$ski@oxy.rust.net>
- References: <4cu5f6$fg2@vector.wantree.com.au>
- NNTP-Posting-Host: liv-16.rust.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- jpet@wantree.com.au (Jody Petroni) wrote:
-
- >Im writing a simple-intermediate application in C I have got a compiler
- >from Borlands which claims to be both for C and C++ .it installs as C++ 3.1
- >but compiles my C code satisfactorily except for 2 errors:
-
- >1. "Group Overflowed Maximum size:DGROUP"
- >2. "Call to function xyz with no prototype"
-
- >I have delcared all functions as either void or with their return type
- >so I cant quite understand Error 2 . Error 1 is a mystery.
-
- >can anyone help!???
-
- The DGROUP (which is the default data segment) can only be 64K. You
- have more data in your program than can be handled in one 64K segment.
- There are several things you can do to alleviate this:
-
- 1) There is a switch to the compiler to put all constant strings in
- the code segment
-
- 2) You can set the far-data threshold to a lower value. This will
- force data structures over the specified size into a far data segment
- (out of the default data segment)
-
- 3) You can explicitly declare some arrays and structures to be far,
- which will force them into their own data segment.
-
- As for error 2, the compiler wants to see a prototype of a function
- before you call it. For example, in one source file, you may have:
-
- int someFunction(void); // this is prototype for someFunction
- int main(int argc, char **argv)
- {
- ...
- int result = someFunction();
- }
-
- Then, someFunction may be defined later in the same file, or in a
- separate source file.
-
- Hope this helps..
-
- Earl Bennett
-
-
-